package com.niguang.govt.admin.api.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author 12380
 * @since 2018-12-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("work_team_user")
public class TeamUser extends Model<TeamUser> {

    public static final String ID = "id";
    public static final String BZ_NAME = "bz_name";
    public static final String USER_ID = "user_id";
    public static final String SITE_ID = "site_id";
    public static final String TEAM_USER_ID = "team_user_id";
    public static final String WORK_TYPE_ID = "work_type_id";
    public static final String CREATE_TIME = "create_time";
    public static final String DEL_FLAG = "del_flag";
    public static final String LABOR_COMPANY_ID = "labor_company_id";
    public static final String START_SALARY_DATE = "start_salary_date";
    public static final String MONTH_SALARY = "month_salary";
    private static final long serialVersionUID = 1L;
    /**
     * id
     */
    private Long id;
    /**
     * 班组名称
     */
    private String bzName;
    /**
     * 创建用户 ID
     */
    private Long userId;
    /**
     * 工地ID
     */
    private Long siteId;
    /**
     * 班组长ID
     */
    private Long teamUserId;
    /**
     * 工种 ID
     */
    private Long workTypeId;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    @TableLogic
    private Boolean delFlag;
    /**
     * 班组ID
     */
    private Long laborCompanyId;
    /**
     * 起算时间（月薪）
     */
    private String startSalaryDate;
    /**
     * 月薪资
     */
    private String monthSalary;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
